package com.atguigu.day14.morning.m2;

public class Dog extends Animal{
    String name = getName();

    public String getName() {
        System.out.println("Animal getName 6");
        return "旺财";
    }
    static  int age = getAge();
    public static int getAge() {
        System.out.println("Animal getAge 7");
        return 10;
    }
    static {
        System.out.println("Dog 静态代码块 8");
    }
    Dog(){
        super();
        System.out.println("Dog 无参 9");
    }
    {
        System.out.println("Dog 普通成员代码块 A");
    }

}
